import Vue from 'vue';
import formDialog from '@/components/formDialog/formDialog.vue';

/** 打开日志弹出框*/
Vue.prototype.$formDialog = function (options) {
  var CompomentConstruct = Vue.extend(formDialog)
  CompomentConstruct.prototype.$_options=options;
  var instanceDom = new CompomentConstruct();
  
  var $dom = instanceDom.$mount();
  document.body.appendChild($dom.$el)
  //给实例方法参数
  //instanceDom.setOptions(options);
  //$dom.triggerOpen()\
  return $dom && $dom.initPromise()
}
